const Mock = require('mockjs')

const data = Mock.mock({
	"list|100": [{
		"num|+1": 1,
		"url": '@image(100x80, @color, product)',
		"id": "@id",
		"title": '@ctitle',
		"desc": '@cword(20, 40)',
		"price|10-10000": 1,
		// 99  9.9 折
		// 1   0.1 折
		"discount|1-99": 1,
		// 评论
		"message|2-5": [{
			"avator": '@image(50x50, @color)',
			"nickname": "@cname",
			"content": "@cword(10, 30)",
			"createTime": "@datetime",
			"id": '@id'
		}],
	}]
})

module.exports = data